package com.shop.servlet.impl;

import com.shop.dao.impl.AddressDaoImpl;
import com.shop.entity.Address;
import com.shop.servlet.AddressServlet;

import java.sql.SQLException;
import java.util.List;

/**
 * com.shop.servlet.impl文档说明
 *
 * @author Angluzha
 * @version 2022/9/22
 */
public class AddressServletImpl extends BaseServletImpl<Address> implements AddressServlet {
    {
        dao = new AddressDaoImpl();
    }

    @Override
    public List<Address> getListByUid(Integer uid){
        try {
            return ((AddressDaoImpl)dao).selectListByUid(uid);
        } catch (SQLException e) {
            return null;
        }
    }
}
